/**
 *
 *
 *@Auther z.b
 *@date 2016/9/9 13:09
 *@Email:2545375@qq.com
 *@since 1.0
 *
 */
import {createStore, applyMiddleware, compose} from 'redux';
import thunk from 'redux-thunk'
import reducer from '../reducers/index'

const createStoreWithMiddleware=applyMiddleware(
    thunk
)(createStore);

export default function configureStore(initialState){
    const store=createStoreWithMiddleware(reducer,initialState);

    return store;
}